<%--
  Created by IntelliJ IDEA.
  User: leman
  Date: 2017/7/18
  Time: 11:22
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%--<blockquote class="layui-elem-quote" style="line-height: 15px;">--%>
    <%--<a class="bt" href="javascript:;" ng-click="active.nextPage('30', '付款管理', '内容20', 'paymentManage')">付款管理</a> > 付款确认--%>
<%--</blockquote>--%>

<div id="seaBox" ng-hide="mySea">
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label wh">承运人</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input layui-disabled" ng-model="data.bill.carrierName" readonly="readonly">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label wh">账单编号</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input layui-disabled" ng-model="data.bill.billCode" readonly="readonly">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label wh">账单日期</label>
            <div class="layui-input-inline">
                <input type="text" name="number" lay-verify="required|number" autocomplete="off" class="layui-input layui-disabled" ng-model="billDate" readonly="readonly">
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label wh">运单金额</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input layui-disabled" ng-model="data.bill.waybillCost" readonly="readonly">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label wh">结算金额</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input layui-disabled" ng-model="data.bill.settleCost" readonly="readonly">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label wh">发票号</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input layui-disabled" ng-model="data.bill.invoiceNo" readonly="readonly">
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label wh">发票日期</label>
            <div class="layui-input-inline">
                <input class="layui-input layui-disabled" ng-model="invoiceDate" readonly="readonly">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label wh">付款确认日期</label>
            <div class="layui-input-inline">
                <input class="layui-input valName" placeholder="选择日期"  id="payDate"  ng-model="payDate" ng-click="getTime($event,'payDate')">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label wh">发票状态</label>
            <div class="layui-input-inline">
                <input type="text" autocomplete="off" class="layui-input layui-disabled" ng-model="invoiceStatus">
            </div>
        </div>
    </div>

</div>
</div>
<div style="overflow-x:auto;">
    <table class="layui-table" style="min-width: 2200px;max-width: 2200px;margin-bottom: 0;">
        <tr>
            <th>序号</th>
            <th>运单号</th>
            <th>服务订单号</th>
            <th>承运人</th>
            <th>委托日期</th>
            <th>运单起运地</th>
            <th>运单目的地</th>
            <th>品牌</th>
            <th>车系</th>
            <th>车架号</th>
            <th>数量</th>
            <th>状态</th>
            <th>采购价</th>
            <th>调整金额</th>
            <th>结算价</th>
            <th>客户</th>
            <th>订单起运地</th>
            <th>订单目的地</th>
            <th>销售价</th>
            <th>收款状态</th>
        </tr>
        <tr ng-repeat="x in data.list">
            <td ng-bind="$index+1"></td>
            <td ng-bind="x.waybillCode"></td>
            <td ng-bind="x.serviceOrderCode"></td>
            <td ng-bind="x.carrierName"></td>
            <td ng-bind="x.billDate.substring(0,11)"></td>
            <td ng-bind="x.wdepartProvinceName + '-' + x.wdepartCityName"></td>
            <td ng-bind="x.wreceiptProvinceName + '-' + x.wreceiptCityName"></td>
            <td ng-bind="x.brandName"></td>
            <td ng-bind="x.vehicleName"></td>
            <td ng-bind="x.vin"></td>
            <td ng-bind="x.amount"></td>
            <td ng-bind="x.status==20 ? '已接单':(x.status==30 ? '待提车' :(x.status==40 ? '已提车' :(x.status==50 ? '待发车' :(x.status==60 ? '待交车' :(x.status==80 ? '已交车' :(x.status==90 ? '已完成' : ''))))))"></td>
            <td ng-bind="x.sysCost"></td>
            <td ng-bind="x.alterCost"></td>
            <td ng-bind="x.settleCost"></td>
            <td ng-bind="x.customerCompanyName"></td>
            <td ng-bind="x.odepartProvinceName + '-' + x.odepartCityName"></td>
            <td ng-bind="x.oreceiptProvinceName + '-' + x.oreceiptCityName"></td>
            <td ng-bind="x.cost"></td>
            <td ng-bind="x.payStatus==10 ? '未付款':(x.payStatus==20 ? '部分付款':(x.payStatus==30 ? '付款完成':x.payStatus))"></td>
        </tr>
    </table>
</div>
<div class="layui-input-inline" style="text-align: center;width: 100%;margin-top:16px;">
    <button class="layui-btn layui-btn-normal" lay-submit=""  ng-click="active.nextPage('30', '付款管理', '内容20', 'paymentManage')">取消</button>
    <button class="layui-btn" ng-click="active.confirmPayBtn()" id="id" value="{{data.bill.id}}">确认付款</button>
</div>


